package zhu.areas.tenderbid.service;

import java.util.List;

import zhu.areas.tenderbid.dao.IBidCommDAO;
import zhu.areas.tenderbid.data.BidComm;

public class BidCommServiceImpl implements IBidCommService{

	private  IBidCommDAO bidCommDAO;

	public IBidCommDAO getBidCommDAO() {
		return bidCommDAO;
	}
	public void setBidCommDAO(IBidCommDAO bidCommDAO) {
		this.bidCommDAO = bidCommDAO;
	}

	
	public Boolean addBidComm(BidComm bidComm) {
		bidCommDAO.save(bidComm);
		return true;
	}

	public Boolean updateBidComm(BidComm bidComm) {
		bidCommDAO.update(bidComm);
		return true;
	}

	public Boolean deleteBidComm(BidComm bidComm) {
		bidCommDAO.delete(bidComm);
		return true;
	}

	public BidComm getBidCommByID(int id) {

		return (BidComm) bidCommDAO.findById(BidComm.class, id);
	}

	public List<BidComm> getAllBidComm() {
		
		return null;
	}
	
	
}
